package reflect;

import java.io.File;
import java.net.URISyntaxException;

/**
 * @author DBX
 * @effect 自动实列化file包下的所有类
 * @date 2021/09/15/16:35
 */
public class ReflectDemo9 {
    public static void main(String[] args) throws URISyntaxException {
        File dir = new File(
                ReflectDemo9.class.getClassLoader().getResource(".").toURI());
        String path = dir.getAbsolutePath();
        System.out.println(path);
    }
}
